SerGetBuf
You can use theSerGetBuf
function to determine the number of characters available in the driver's input buffer.
FUNCTION SerGetBuf (refNum: Integer; VAR count: LongInt): OSErr;
refNum
- The driver reference number of the serial input driver.
count
- On exit, the number of characters in the input buffer.
DESCRIPTION
TheSerGetBuf
function returns, in thecount
parameter, the number of characters present in the input buffer.ASSEMBLY-LANGUAGE INFORMATION
TheSerGetBuf
function is equivalent to a Device Manager status request with acsCode
value of 2. Thecount
value is returned incsParam
as a long word (csParam[0]
=count
).RESULT CODES
noErr 0 No error